package com.hziee.mail.model;

import javax.persistence.*;
import java.util.Objects;

@Entity
@Table(name = "goods_directionary", schema = "mall", catalog = "")
public class GoodsDirectionaryEntity {
    private int id;
    private String goodsId;
    private String goodsBright;
    private String goodsImg;
    private String goodsPeizhi;
    private String goodsTitle;
    private String goodsNameTwo;

    @Id
    @Column(name = "id")
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Basic
    @Column(name = "goods_id")
    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    @Basic
    @Column(name = "goods_bright")
    public String getGoodsBright() {
        return goodsBright;
    }

    public void setGoodsBright(String goodsBright) {
        this.goodsBright = goodsBright;
    }

    @Basic
    @Column(name = "goods_img")
    public String getGoodsImg() {
        return goodsImg;
    }

    public void setGoodsImg(String goodsImg) {
        this.goodsImg = goodsImg;
    }

    @Basic
    @Column(name = "goods_peizhi")
    public String getGoodsPeizhi() {
        return goodsPeizhi;
    }

    public void setGoodsPeizhi(String goodsPeizhi) {
        this.goodsPeizhi = goodsPeizhi;
    }

    @Basic
    @Column(name = "goods_title")
    public String getGoodsTitle() {
        return goodsTitle;
    }

    public void setGoodsTitle(String goodsTitle) {
        this.goodsTitle = goodsTitle;
    }

    @Basic
    @Column(name = "goods_name_two")
    public String getGoodsNameTwo() {
        return goodsNameTwo;
    }

    public void setGoodsNameTwo(String goodsNameTwo) {
        this.goodsNameTwo = goodsNameTwo;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        GoodsDirectionaryEntity that = (GoodsDirectionaryEntity) o;
        return id == that.id &&
                Objects.equals(goodsId, that.goodsId) &&
                Objects.equals(goodsBright, that.goodsBright) &&
                Objects.equals(goodsImg, that.goodsImg) &&
                Objects.equals(goodsPeizhi, that.goodsPeizhi) &&
                Objects.equals(goodsTitle, that.goodsTitle) &&
                Objects.equals(goodsNameTwo, that.goodsNameTwo);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, goodsId, goodsBright, goodsImg, goodsPeizhi, goodsTitle, goodsNameTwo);
    }
}
